let globalZIndex = 20;

/** the global z-index is automatically incremented after reading */
export const useGlobalZIndex = () => ++globalZIndex;

/** reset the global z-index */
export const setGlobalZIndex = (val) => {
    globalZIndex = val;
};